export module WorldTime;

import DND;

//公历时间
export class WorldTime
{
public:
	ChronoYear GetYear(){ return _ymd.year(); }
	ChronoMonth GetMonth() { return _ymd.month(); }
	ChronoDay GetDay() { return _ymd.day(); }

	void Set(ChronoYear y, ChronoMonth m, ChronoDay d)
	{
		_ymd = { y, m, d };
	}

	void SetYear(ChronoYear y)
	{
		_ymd = { y, GetMonth(), GetDay() };
	}
private:
	ChronoYMD _ymd;
};
